{% extends 'layout.html' %}

{% block title %}首页{% endblock %}

{% block body %}

    <h1>登录</h1>
    <form method="post">
        <p>{{ form.user.label }} {{ form.user }} {{ form.user.errors[0] }}</p>
        <p>{{ form.password.label }} {{ form.password }} {{ form.password.errors[0] }}</p>
        <input type="submit" value="提交">
    </form>
{% endblock %}



